package net.sxnic.ugr.user.util;

import java.util.Comparator;

import net.sxnic.ugr.user.User;

@SuppressWarnings("rawtypes")
public class UserComparator implements Comparator{

	public int compare(Object arg0, Object arg1) {
		User User0 = (User) arg0;
		User User1 = (User) arg1;
		// 比较code
		 int flag =  User0.getUserOrder() - User1.getUserOrder() ;
//		  if (flag==0)
//		  {
//			  flag = User0.getCode().compareTo(User1.getCode());
//		  }
	 
		return  flag;

	}

}
